package fachade;

import java.util.List;

import dao.RestauranteDAO;
import entity.MedioPagoBD;
import entity.RestauranteBD;
import entity.SectorBD;

public class RestauranteFachade {
	private RestauranteDAO restauranteDAO;

	public RestauranteFachade() {
		this.restauranteDAO = new RestauranteDAO();
	}

	public List<RestauranteBD> getRestaurantes() {
		return this.restauranteDAO.getRestaurantes();
	}
	
	public List<MedioPagoBD> getMediosPago() {
		return this.restauranteDAO.getMediosPago();
	}
	
	public MedioPagoBD getMedioPago(Integer medioPago) {
		return (MedioPagoBD) this.restauranteDAO.buscar("MedioPagoBD", "codigo", medioPago);
	}
	
	public RestauranteBD getRestaurante(Integer restaurante) {
		return (RestauranteBD) this.restauranteDAO.buscar("RestauranteBD", "idRestaurante", restaurante);
	}
	
	public SectorBD getSector(Integer sector){
		return (SectorBD) this.restauranteDAO.buscar("SectorBD", "idSector", sector);
	}
}
